package com.xfsg.core.log.config;

import com.xfsg.core.elasticjob.LogTraceElasticJobAop;
import com.xfsg.core.log.logger.PitayaLogger;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ZhangYi
 * @version 1.0.0
 * @Description:
 * @date 2022/3/30
 */
@ConditionalOnClass(name = {"com.dangdang.ddframe.job.api.simple.SimpleJob"})
@AutoConfigureAfter(PitayaLogger.class)
@Configuration(proxyBeanMethods = false)
public class ElasticJobTraceAutoConfiguration {

    @Bean
    public LogTraceElasticJobAop logTraceElasticJobAop(){
        return new LogTraceElasticJobAop();
    }

}
